package com.dayuanit.user;

import com.dayuanit.edu.Vehicle;

import com.dayuanit.tools.School;

public class Person{
	private String name;
	private int age;
	private String sex;
	private Vehicle vehicle;


	public Person(){

	}

	public void gotoSchool(Vehicle vehicle,School school){
		vehicle.move(name,school);
	}

	public void setVehicle(Vehicle vehicle){
        this.vehicle=vehicle;
	}

	public Vehicle getVehicle(){
		return vehicle;
	}

	public void setName(String name){
		this.name=name;
	}

	public String getName(){
		return name;
	}

	public void setAge(int age){
		this.age=age;
	}

	public int getAge(){
		return age;
	}

	public void setSex(String sex){
		this.sex=sex;
	}

	public String getSex(){
		return sex;
	}
}